/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransferHotel;
import com.sasis.dao.FlightTransferHotelDao;
import com.sasis.service.FlightTransferHotelManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransferHotelManagerImpl extends BaseManager implements FlightTransferHotelManager {
    private FlightTransferHotelDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransferHotelDao(FlightTransferHotelDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransferHotelManager#getFlightTransferHotels(com.sasis.model.FlightTransferHotel)
     */
    public List getFlightTransferHotels(final FlightTransferHotel flightTransferHotel) {
        return dao.getFlightTransferHotels(flightTransferHotel);
    }

    /**
     * @see com.sasis.service.FlightTransferHotelManager#getFlightTransferHotel(String id)
     */
    public FlightTransferHotel getFlightTransferHotel(final String id) {
        return dao.getFlightTransferHotel(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransferHotelManager#saveFlightTransferHotel(FlightTransferHotel flightTransferHotel)
     */
    public int saveFlightTransferHotel(FlightTransferHotel flightTransferHotel) {
       return dao.saveFlightTransferHotel(flightTransferHotel);
    }

    /**
     * @see com.sasis.service.FlightTransferHotelManager#removeFlightTransferHotel(String id)
     */
    public void removeFlightTransferHotel(FlightTransferHotel flightTransferHotel) {
        dao.removeFlightTransferHotel( flightTransferHotel);
    }
    
    public void deleteFlightTransferHotel(FlightTransferHotel flightTransferHotel){
    	dao.deleteFlightTransferHotel(flightTransferHotel);
    }
    
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
